using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KBE_HotFix.UI;
using UnityEngine;

namespace KBE_HotFix.Scene
{
    public class LoginScene
    {
        public GameObject Login;
        public GameObject Create;
        public GameObject Select;
        public GameObject Enter;
        public LoginScene()
        {
            Event.registerOut("CreateAvatar", this, "CreateAvatar");
            Event.registerOut("SelectAvatar", this, "SelectAvatar");
            Event.registerOut("EnterGame", this, "EnterGame");
        }

        public void CreateAvatar()
        {
            Login.SetActive(false);
            Enter.SetActive(false);
            Create.SetActive(true);
        }

        public void SelectAvatar()
        {

        }

        public void EnterGame(ulong uuid)
        {
            Login.SetActive(false);
            Enter.SetActive(true);
            Create.SetActive(false);
            Event.fireIn("reqSelectAvatar", uuid);          
        }
    }
}